package com.zzt.zt_hilt

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.zzt.zt_hilt.vm.LoginViewModel

class TestActivityV4 : AppCompatActivity() {

//    private lateinit var loginViewModel: LoginViewModel

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test_v4)

//        // Gets userRepository from the instance of AppContainer in Application
//        var appContainer = (application as MyApplication).appContainer
//        loginViewModel = LoginViewModel(appContainer.userRepository)
//
//
//        // Gets LoginViewModelFactory from the application instance of AppContainer
//        // to create a new LoginViewModel instance
//        appContainer = (application as MyApplication).appContainer
//        loginViewModel = appContainer.loginViewModelFactory.create()

    }
}